<template>
  <h1>下拉选框组件</h1>
  <h3>请选择您所在的城市</h3>
  <el-select v-model="city" placeholder="请选择您的城市" style="width:30%">
    <el-option value="beijing" label="北京"></el-option>
    <el-option value="shanghai" label="上海"></el-option>
    <el-option value="guangzhou" label="广州"></el-option>
    <el-option value="shenzhen" label="深圳"></el-option>
  </el-select>
  <br>
  <h4>您选择的城市为:{{city}}</h4>
  <hr>
  <h3>请选择您的性别</h3>
  <el-select v-model="gender" placeholder="下拉选择" style="width:20%">
    <el-option value="男" label="1"></el-option>
    <el-option value="女" label="0"></el-option>
    <el-option value="未知物种" label="2"></el-option>
  </el-select>
  <h4>您的性别为:{{gender}}</h4>
</template>

<script setup>
  import {ref} from "vue";

  const city = ref('beijing');
  const gender = ref('未知物种');
</script>

<style scoped>

</style>